package com.tiankong.product.service;

import com.tiankong.product.entity.Attr;
import com.tiankong.product.entity.AttrAttrgroup;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 属性&属性分组关联 服务类
 * </p>
 *
 * @author scl
 * @since 2021-03-22
 */
public interface AttrAttrgroupService extends IService<AttrAttrgroup> {

    void saveRelation(AttrAttrgroup relation);
    /**
     * 获取关联的属性列表
     * @param groupId
     * @return
     */
    List<Attr> getRelationAttr(Long groupId);

    Set<Long> getRelationAttrIds(Long groupId);

    void removeRelationGroup(Set<Integer> groupIds);
}
